package com.gr.dmbackend.controller.student;

import com.alibaba.fastjson.JSONObject;
import com.gr.dmbackend.service.student.AddRepairService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class AddRepairController {

    @Autowired
    private AddRepairService addRepairService;

    @PostMapping("/api/student/add-repair")
    public JSONObject addRepair(@RequestParam Map<String, String> data) {
        return addRepairService.addRepair(data);
    }

}
